package com.hzsoft.util;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import org.apache.commons.codec.binary.Base64;

public class Base64ImageTool {
	public static void main(String[] args) {
		 byte[] strImg = encodeImageToStr("D:\\3.jpg");
		 System.out.println(new String(strImg));
		 
//		 decodeStrToImage("/9j/4AAQSkZJRgABAAEAYABgAAD//gAfTEVBRCBUZWNobm9sb2dpZXMgSW5jLiBWMS4wMQD/2wCEAAMCAgMCAgMDAwMEBAMEBQkGBQUFBQsICAYJDQwODg0MDQ0PERYSDxAUEA0NExoTFBYXGBgYDhIbHRoYHBYYGBcBBAQEBQUFCwYGCxcPDQ8XFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXF//EAaIAAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKCwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+foRAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/AABEIAMgAyAMBEQACEQEDEQH/2gAMAwEAAhEDEQA/APkSO2jwcxjOa4W7H13KiT7JGP8Almv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nWNYjH2gfNbwn+D/aPvX51xfxQpTWEwvwdT7DJMlVJe1qnvtsxeN13YLLhfaviMpxHscWqnc9uqT2drvmjeUs7rzkniv1dbJnKayNmXoQPSgT2PyG1HWI7K0lkBJCYJHqe1Woc1kdk6ypRlJ9Dqfid4oTUPAek6hHH891Eqn0Q4/wDrV4WW4eSx9SEujPSzXGJYCnVj1R5t8MtbGg+M7C4c4jdvLf6N/wDXxXv5jR9rhpR7anzOTYl0MZGSe+h2n7QUMcmoaVdLGFkaJkZsAbgOlcGRyfsnB9D0eJYRVWM0tXueRV7p8yKOCM9KBehatp5Um/cEgDtmodNS0OijiqlFqzsdBp/iu5sCvmbgBXDWwMZaH0GDzvkXvnZ6H8TTCyhmPHevIxGU3Wh7+GzmMnueiaN8U4mCjdwRXhV8nkj2qOZQkjsNL+Itq8Y+Y5+vSvLq5XNM7FjaclsdLa+OoXACH6c1588vktxe1py6F2HxZCW4Jz71k8FJENRZoWviiEcHIrCeEkZygjTg8U25xkNjHpWDwk0c046jpfHNrbqWYkUlgJyZitzlde+L1jYRMAw3D3r0cNklWbN5VKcIni/jj49BlMNpvklfgKvOTX1uXcNu6cjxsbnNKjHQ5CxsZ9bki1PxBOxiLbltFP3gPU19tgsqhS0SPhsz4ilVi4Qdjs7XVEvbhIrWIpFjaioMBa96PJSpOXY+SnCdSWj1Z7V8OPAVpoqR6trURafhooT29Ca/POJ+JZzTo4WXK+tj7XI8iaSrVVex6raeLoTJwrEt0xX5rOMrvzPq6tHlhy9DrdH8SRSlCUfAq8NC1SPqeRXvF2Ne41tYDiOJznt6V+vYduVGLfYwfkS3PieOCwmmcOoijJ6d8VtZEs//2Q==","d:\\3_3.jpg");
	}

	/**
	 * 将图片转换成base64编码 
	 * @param imgPath
	 * @return
	 */
	public static byte[] encodeImageToStr(String imgPath) {// 将图片文件转化为字节数组字符串，并对其进行Base64编码处理
		InputStream in = null;
		byte[] data = null;
		// 读取图片字节数组
		try {
			in = new FileInputStream(imgPath);
			data = new byte[in.available()];
			in.read(data);
			in.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
		// 对字节数组Base64编码
		return Base64.encodeBase64(data);// 返回Base64编码过的字节数组字符串
	}

	/**
	 * 将BASE64解码成图片 
	 * @param imgStr BASE64编码
	 * @param imgFilePath 文件的保存路径
	 * @return
	 */
	public static void decodeStrToImage(String imgStr, String imgFilePath) {// 对字节数组字符串进行Base64解码并生成图片
		if (imgStr == null) // 图像数据为空
			return ;
		try {
			// Base64解码
			byte[] b = Base64.decodeBase64(imgStr);
			for (int i = 0; i < b.length; ++i) {
				if (b[i] < 0) {// 调整异常数据
					b[i] += 256;
				}
			}
			// 生成jpeg图片
			OutputStream out = new FileOutputStream(imgFilePath);
			out.write(b);
			out.flush();
			out.close();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}